<include file="Admin@default/public/header" />
    <div class="toptit">编辑分站</div>
	<form action="{:U('admin/edit')}" method="post" enctype="multipart/form-data" name="form1" id="form1">
        <div class="form_main width150">
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 分站名称:</div>
            <div class="fr">
                <input name="s_sitename" type="text" class="input_text_default small" maxlength="100" value="{$info.s_sitename}"/>
                <label class="no-fl-note">如：太原站</label>
            </div>
            <div class="fl"> 分站状态:</div>
            <div class="fr">
                <div class="imgradio">
                    <input name="s_effective" type="hidden" value="">
                    <div class="radio <if condition="$info['s_effective'] eq 1">select</if>" data="1">可用</div>
                    <div class="radio <if condition="$info['s_effective'] eq 0">select</if>" data="0">禁用</div>
                    <div class="clear"></div>
                </div>
            </div>
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 分站地区:</div>
            <div class="fr">
                <input name="s_districtname" id="s_districtname" readonly="readonly" type="text" class="J_resuletitle_city input_text_default small" data-title="请选择分站地区" data-multiple="false" data-maxnum="0" data-width="520" value="{$info.s_districtname|default="请选择"}"/>
                <input name="s_district" id="s_district" class="J_resultcode_city" type="hidden" value="{$info.s_district}" />
            </div>
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 域名绑定:</div>
            <div class="fr">
                <input name="s_domain" type="text" class="input_text_default small" maxlength="100" value="{$info.s_domain}"/>
                <label class="no-fl-note">输入二级域名，不带http://，如：0351.rencai.com</label>
            </div>
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 触屏版域名绑定:</div>
            <div class="fr">
                <input name="s_m_domain" type="text" class="input_text_default small" maxlength="100" value="{$info.s_m_domain}"/>
                <label class="no-fl-note">输入二级域名，不带http://，如：m0351.rencai.com</label>
            </div>
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> PC端风格模版：</div>
            <div class="fr txt">
                <select name="s_tpl">
                    <option value="" <if condition="$info.s_tpl eq ''">selected="selected"></if>>请选择</option>
                    <volist name="dirs" id="dir">
                        <option value="{$dir}" <if condition="$info.s_tpl eq $dir">selected="selected"</if>>{$dir}</option>
                    </volist>
                </select>
            </div>
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 触屏端风格模版：</div>
            <div class="fr txt">
                <select name="s_m_tpl">
                    <option value="" <if condition="$info.s_m_tpl eq ''">selected="selected"></if>>请选择</option>
                    <volist name="dirss" id="dir">
                        <option value="{$dir}" <if condition="$info.s_m_tpl eq $dir">selected="selected"</if>>{$dir}</option>
                    </volist>
                </select>
            </div>
            <div class="fl">分站排序:</div>
            <div class="fr">
                <input name="s_order" id="s_order" type="text" class="input_text_default small" maxlength="8" value="{$info.s_order|default=0}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
                <label class="no-fl-note">数字越大越靠前</label>
            </div>
            <div class="fl">分站首页Logo：</div>
            <div class="fr txt">
                <input name="s_logo_home" type="file" id="web_logo" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
                <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=<if condition="$info['s_logo_home']">{:attach($info['s_logo_home'],'resource')}<else/>__HOMEPUBLIC__/images/logo.gif</if>  border=0  align=absmiddle>" style="font-size:12px;"/>
            </div>
            <div class="fl">分站会员中心Logo：</div>
            <div class="fr txt">
                <input name="s_logo_user" type="file" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
                <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=<if condition="$info['s_logo_user']">{:attach($info['s_logo_user'],'resource')}<else/>__HOMEPUBLIC__/images/logo_user.png</if>  border=0  align=absmiddle>" style="font-size:12px;"/>
            </div>
            <div class="fl">分站其它页Logo：</div>
            <div class="fr txt">
                <input name="s_logo_other" type="file" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
                <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=<if condition="$info['s_logo_other']">{:attach($info['s_logo_other'],'resource')}<else/>__HOMEPUBLIC__/images/logo_other.png</if>  border=0  align=absmiddle>" style="font-size:12px;"/>
            </div>
            <div class="fl">title：</div>
            <div class="fr">
                <input name="s_title" type="text" class="input_text_default" value="{$info.s_title}"/>
            </div>
            <div class="fl">Keywords：</div>
            <div class="fr">
                <input name="s_keywords" type="text" class="input_text_default" value="{$info.s_keywords}"/>
            </div>
            <div class="fl">seo_description：</div>
            <div class="fr">
                <textarea name="s_description" class="input_text_default" id="s_description" style="line-height:200%; height:150px;">{$info.s_description}</textarea>
            </div>
            <div class="fl">百度地图AK：</div>
            <div class="fr">
                <input name="s_map_ak" id="map_ak" type="text" class="input_text_default middle" value="{$info.s_map_ak|default=C('qscms_map_ak')}" style="color:#009900; font-weight:bold"/>
            </div>
            <div class="fl">默认中心点X坐标：</div>
            <div class="fr">
                <input name="s_map_center_x" id="map_center_x" type="text" class="input_text_default middle" value="{$info.s_map_center_x|default=C('qscms_map_center_x')}" style="color:#009900; font-weight:bold"/>
                <label>推动电子地图，系统将自动获取坐标</label>
            </div>
            <div class="fl">默认中心点Y坐标：</div>
            <div class="fr">
                <input name="s_map_center_y" id="map_center_y" type="text" class="input_text_default middle" value="{$info.s_map_center_y|default=C('qscms_map_center_y')}" style="color:#009900; font-weight:bold"/>
            </div>
            <div class="fl">默认缩放级别：</div>
            <div class="fr">
                <input name="s_map_zoom" id="map_zoom" type="text" class="input_text_default middle" value="{$info.s_map_zoom|default=C('qscms_map_zoom')}" style="color:#009900; font-weight:bold"/>
            </div>
            <div class="fl"></div>
            <div class="fr">
                <div style="width:600px;height:400px; border:1px #CCCCCC solid" id="container"></div>
            </div>
            <div class="fl"></div>
            <div class="fr">
                <input name="s_id" type="hidden" value="{$info.s_id}">
                <input name="submit3" type="submit" class="admin_submit"    value="保存"/>
                <input name="submit22" type="button" class="admin_submit"    value="返回" onclick="Javascript:window.history.go(-1)"/>
            </div>
            <div class="clear"></div>
        </div>
	</form>
	<input type="hidden" id="existSub" value="{$subsites}">
</div>
<include file="Admin@default/public/footer" />
<qscms:load type="category"/>
<script type="text/javascript" src="__ADMINPUBLIC__/js/jquery.subsite.city.js"></script>
<script src="http://api.map.baidu.com/api?v=1.2" type="text/javascript"></script>
<script type="text/javascript">
	var map = new BMap.Map("container");       // 创建地图实例   
	var point = new BMap.Point({$info.s_map_center_x|default=C('qscms_map_center_x')},{$info.s_map_center_y|default=C('qscms_map_center_y')});  // 创建点坐标   
	map.centerAndZoom(point, {$info.s_map_zoom|default=C('qscms_map_zoom')}); 
	map.addControl(new BMap.NavigationControl());   
	map.addEventListener("moveend", function(){   
	var center = map.getCenter();
	document.getElementById("map_center_x").value=center.lng; 
	document.getElementById("map_center_y").value= center.lat; 
	document.getElementById("map_zoom").value=map.getZoom();
});   
</script>
</body>
</html>